package com.linqi.freebie.http.ktorClientCio.interceptor

import io.github.aakira.napier.Napier
import io.ktor.client.plugins.api.createClientPlugin

val LoggingPlugin = createClientPlugin(name = "LoggingPlugin") {
    onRequest { request, _ ->
        Napier.d("发送请求: ${request.url}")
    }
    onResponse { response ->
        Napier.d("收到响应: ${response.status}")
    }
}
